package com.gouda.core.entity;

import lombok.Data;
import org.amethyst.atlas.basic.entity.MagicDBEntity;
import org.amethyst.atlas.basic.meta.Column;
import org.amethyst.atlas.basic.meta.PrimaryKey;
import org.amethyst.atlas.basic.meta.Table;

import java.io.Serializable;
import java.util.Date;

/**
 * 优惠券
 * Created by KGL on 2015/12/4.
 */
@Data
@Table(tableName = "coupons")
public class CouponsEntity extends MagicDBEntity<CouponsEntity> implements Serializable {

    private static final long serialVersionUID = 6090580073248734500L;
    @PrimaryKey
    private long id;
    @Column
    private int couponsNum;
    @Column
    private String content;
    @Column
    private int type;
    @Column
    private long price;
    @Column
    private long frontPrice;
    @Column
    private long cityId;
    @Column
    private Date startTime;
    @Column
    private Date endTime;
    @Column
    private int state;
    @Column
    private Date createTime;
}
